ConfigManager = OpenLayers.Class({
	
	initialize: function(configXml) {
		this.configload(configXml);
	},
	configload:function(configXml){
		//读取配置文件
		var params = {
			//url:"config.xml"
			url :configXml
		};
		
		//请求解析xml
		$.ajax({
			type: "POST",
			url: params.url,
			data: {},
			cache: false,
			async: false,
			success: this.onLoad,
			error: function(XMLHttpRequest, textStatus, errorThrown){
				alert("xml配置读取有误!");
			}
		});
	},
	
	onLoad:function(xml){
		//configData为配置文件xml对象
		ConfigManager.configData = $.xml2json(xml);
		//触发加载完configData的事件
		_events.triggerEvent("configLoadedEvent",ConfigManager.configData);
		
	},
	CLASS_NAME:"openGis.configManager"
});

